package com.toman.bean;

import com.toman.Util.ActionCallback;
import com.toman.Util.DialogUtils;

import java.io.Serializable;
import java.util.List;

import lombok.Data;

/**
 * Created by 邹苏隆 on 2018/10/11.
 * description：高级筛选
 */
@Data
public class DialogBean implements Serializable {
    public DialogBean(String submitName,String name) {
        this.name = name;
        this.type=0;
        this.submitName=submitName;
    }

    public DialogBean(String submitName,String name, int type) {
        this.name = name;
        this.type = type;
        this.submitName=submitName;
    }

    public DialogBean(String submitName,String name ,int type, List<ItemListBean> list) {
        this.name = name;
        this.type = type;
        this.listItem = list;
        this.submitName=submitName;
    }
    public DialogBean(String submitName,String name ,int type, List<ItemListBean> list,ActionCallback callback) {
        this.name = name;
        this.type = type;
        this.listItem = list;
        this.submitName=submitName;
        this.actionCallback=callback;
    }

    public DialogBean(String submitName,String name, int type, String[] str) {
        this.name = name;
        this.type = type;
        this.listItem = DialogUtils.getList(str);
        this.submitName=submitName;
    }
    public DialogBean(String submitName,String name, int type, String[] str,int index) {
        this.name = name;
        this.type = type;
        this.listItem = DialogUtils.getList(str,index);
        this.submitName=submitName;
    }
    public DialogBean(String submitName,String name, int type, String[] str,int index,ActionCallback callback) {
        this.name = name;
        this.type = type;
        this.listItem = DialogUtils.getList(str,index);
        this.submitName=submitName;
        this.actionCallback=callback;

    }
//显示的名称
    String name;
    String submitName;
    List<ItemListBean> listItem;
String content;
    int type;//0输入 1选择 2.日期
    String result;
    ActionCallback actionCallback;

}
